package cn.demos.service.impl;

import cn.demos.dao.FaqsMapper;
import cn.demos.pojo.Faqs;
import cn.demos.service.FaqsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class FaqsServiceImpl implements FaqsService {

    @Resource
    private FaqsMapper faqsMapper;

    public List<Faqs> getAll(String title) {
        return faqsMapper.getAll(title);
    }

    public Faqs getById(Integer id) {
        return faqsMapper.getById(id);
    }

    public int add(Faqs faqs) {
        return faqsMapper.add(faqs);
    }

    public int check(String title) {
        return faqsMapper.check(title);
    }
}
